package com.yupi.springbootinit.statemachine.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 状态转换结果VO
 */
@Data
@Schema(description = "状态转换结果")
public class StateTransitionVO {
    
    @Schema(description = "实体ID")
    private Long entityId;
    
    @Schema(description = "实体类型")
    private String entityType;
    
    @Schema(description = "源状态")
    private String fromState;
    
    @Schema(description = "目标状态")
    private String toState;
    
    @Schema(description = "转换是否成功")
    private Boolean success;
    
    @Schema(description = "错误代码")
    private String errorCode;
    
    @Schema(description = "错误信息")
    private String errorMessage;
    
    @Schema(description = "执行耗时(毫秒)")
    private Long duration;
}